package com.yunhe.java.day06;
import java.util.Scanner;
public class Student1 {
    public static void main(String[] args) {
//        Student p1= new Student("王");
//        Student p2=new Student("李");
//        Student p3=new Student("赵");
//        System.out.println(p1.name);System.out.println(p1.sex);System.out.println(p1.phone);
//        System.out.println(p2.name);System.out.println(p2.sex);System.out.println(p2.phone);
//        System.out.println(p3.name);System.out.println(p3.sex);System.out.println(p3.phone);
//        p1.looking();p1.playGames();p1.practicing(); p1.looking(); p1.looking();
//        p2.playGames();p2.practicing();p2.looking();p2.looking();
//        p3.practicing();p3.looking();p3.practicing();
//        Student.showPower();
//        Student.students[0]=p1;
//        Student.students[1]=p2;
//        Student.students[2]=p3;
//        Student.sayAllName();
//
//                Scanner scanner = new Scanner(System.in);
//                for(int i = 1; i < 3; i++) {
//                    System.out.print("请输入第"+i +"个学员信息"+"\n "+"请输入姓名:"+" "+"年龄:"+" "+"性别："+" ");
//                    String name = scanner.next();  //接受输入的姓名
//                    int age = scanner.nextInt();  //年龄
//                    String sex = scanner.next();   //性别
//                    System.out.print("是否单身：");
//                    String single = scanner.next();  //是否单身
//                    boolean single2 = false;
//                    if (single.equals("是")) {
//                        single2 = true;
//                    }
//                    System.out.print("请输入手机：");
//                    String phone = scanner.next();  //手机
//                    Student stu = new Student(name,age,sex.charAt(0),weight,single2,phone);
//                    Student.students[i] = stu;  //把学生对象放到数组
//                }
//                System.out.println("录入完成！");
//                System.out.println("查看学生信息请输入1");
//                System.out.println("查看学生信息请输入1");
//                System.out.println("查看学生信息请输入1");
//                System.out.println("查看学生信息请输入1");
//                int num = scanner.nextInt();
//                switch (num) {
//                    case  1 : Student.sayAllName();break;
//                    default:{}
//                }
//                System.out.println("程序结束！");
//            }
    }
}


